package com.study.druid.service.impl;



import com.study.druid.dao.one.UserDAO;
import com.study.druid.dao.two.User2DAO;
import com.study.druid.entity.one.UserDO;
import com.study.druid.entity.two.User2DO;
import com.study.druid.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName UserServiceImpl
 * @Author swj
 * @Date 2020/9/3 10:01
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDAO userDAO;

    @Autowired
    private User2DAO user2DAO;

    @Override
    public List<UserDO> getUsers() {
        user2DAO.getUsers();
        return userDAO.getUsers();
    }

    @Override
    public List<User2DO> getUser2s() {
        return user2DAO.getUsers();
    }
}
